package com.dk.em;

public enum ConstantEnum {

    SUCCESS(100,"操作成功"),
    REGISTER_SUCCESS(200,"注册成功"),
    UPDATE_SUCCESS(201,"更新成功"),
    ERROR(101,"操作失败"),
    NO_AUTH(102,"未登录"),
    SELLER_EXIST(20002,"用户已存在"),
    SELLER_NOEXIST(20006,"用户不存在"),
    ERROR_CODE(20004,"验证码不正确"),
    ERROR_PWD(20007,"密码错误"),
    FAIL_FALLBACK(103,"熔断了"),
    AGTEWAY_PROXY_ERROR(104,"无法连接,请检查您的网络"),
    TOO_QUICKLY(105,",请求太多"),
    USER_ABNORMAL(20010,"用户状态异常");


    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ConstantEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    ConstantEnum() {
    }
}
